﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Djgl_TfSh.aspx.vb" Inherits="Slxt.Djgl_TfSh" %>
<%@ Register TagPrefix="cc1" Namespace="Mysoft.PubProject.Business" Assembly="Mysoft.PubProject.Business" %>
<%@ Register TagPrefix="cnt" Namespace="Mysoft.Map.Application.Controls" Assembly="Mysoft.Map.Application.Components" %>
<%@ Register TagPrefix="mnu" Namespace="Mysoft.Map.Application.Menus" Assembly="Mysoft.Map.Application.Components" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title></title>
		<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1"/>
		<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1"/>
		<meta name="vs_defaultClientScript" content="JavaScript"/>
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5"/>
		<link rel="stylesheet" type="text/css" href="/_grid/map_grid.css"/>
		<link rel="stylesheet" type="text/css" href="/_nav/menu.css"/>
		<script language="javascript" src="/_common/scripts/global.js"></script>
		<link rel="stylesheet" type="text/css" href="/_forms/styles/form.css"/>
		<link rel="stylesheet" type="text/css" href="/_controls/find/find.css"/>
		<link rel="stylesheet" type="text/css" href="/_common/styles/global.css"/>
		<script language="javascript" src="/_controls/settings.aspx"></script>
		<script language="javascript" src="/_controls/util/util.js"></script>
		<script language="javascript" src="/_controls/datetime/date.js"></script>
		<script language="javascript" src="/_controls/number/number.js"></script>
		<script language="javascript" src="/_controls/find/find.js"></script>
		<script language="javascript" src="/slxt/js/Public.js"></script>
		<!-- DropDownTree -->
		<link rel="stylesheet" type="text/css" href="/_controls/tree/dropdowntree.css">
		<link rel="stylesheet" type="text/css" href="/pubproject/_controls/CRMControls/ProjDDTree.css">
		<script language="javascript">

		    //在线帮助文件
		    //var _MyHelpfile = "/Slxt/help/topics/项目准备/价格管理/退房审核.html";

		    function window.onload() {
		        appQuery.clickQuery();
		    }

		    // 触发查询事件
		    //
		    function myQuery() {
		        try {
		            var url = ""
		            var xmlurl = appViewList.xmlurl;

		            //如果在待审核房间查询，则查询结果需要对应到待审核房间页面
		            if (xmlurl == "/Slxt/XMZB/Djgl_TfSh_Grid_Result.xml") {
		                if (appIframe.location.pathname == "/Slxt/XMZB/Djgl_TfSh_Grid.aspx") {
		                    url = "DJgl_TfSh_Grid.aspx";
		                    xmlurl = "/Slxt/XMZB/Djgl_TfSh_Grid.xml";
		                }
		                else {
		                    url = "Djgl_TfSh_Grid_Ysh.aspx";
		                    xmlurl = "/Slxt/XMZB/Djgl_TfSh_Grid_Ysh.xml";
		                }
		            }
		            else if (xmlurl == "/Slxt/XMZB/DJgl_TfSh_Grid.xml" || xmlurl == "") {
		                url = "Djgl_TfSh_Grid.aspx";
		                xmlurl = "/Slxt/XMZB/Djgl_TfSh_Grid.xml";
		            }
		            else
		                url = "Djgl_TfSh_Grid_Ysh.aspx";

		            appIframe.location = url + "?xml=" + escape(xmlurl) + "&filter=" + escape(appQuery.queryxml).replace(/\+/g, "%2B");

		        }
		        catch (e) {
		            alert("myQuery() 函数执行失败！");
		        }
		    }

		    // 清空 AppFind 的查询条件
		    function ClearAppFind() {
		        appFind.clearQuery();
		    }

		    // 功能：选择房产
		    function SelectRoomInfo(o) {
		        if (appQueryCtl0.value == "") return;

		        var sRoomInfo = ChooseRoomInfo("", "01010109", appQueryCtl0.value);
		        if (sRoomInfo == undefined || sRoomInfo == "") return;
		        o.parentElement.previousSibling.firstChild.value = sRoomInfo;
		    }
		
		</script>
	</HEAD>
	<body MS_POSITIONING="GridLayout" class="tab" style="PADDING-RIGHT:15px; PADDING-LEFT:15px; PADDING-BOTTOM:15px; PADDING-TOP:15px">
		<table id="appQuery" class="appQuery" onquery="myQuery()" style="FONT-SIZE: 9pt" height="100%"
			border="0" cellSpacing="0" cellPadding="0" width="100%">
			<tr height="30">
				<td>
					<!--Begin of 下拉列表控件-->
					<table style="TABLE-LAYOUT: fixed; VERTICAL-ALIGN: text-bottom; WIDTH: 100%; HEIGHT: 30px"
						cellSpacing="0" cellPadding="0" border="0">
						<COLGROUP>
							<col width="60">
							<col>
							<col width="20">
							<col>
							<col width="15">
						</COLGROUP>
						<tr>
							<td><b style="COLOR:#666666">项目</b></td>
							<td>
								<form id="Form1" method="post" runat="server" style="DISPLAY:inline">
									<cc1:ProjDDTree2 id="appQueryCtl0" runat="server" onquery="ClearAppFind()" DisplayHiberarchy="Building"
										IsSelectLastLevelOnly="False" IsSelectAll="False"  ProjField="ep_Room.ProjGUID" BldField="ep_Room.bldGUID" CssClass="ProjDDTree4" />
								</form>
							</td>
							<td align="center"><!--中间分割条--></td>
							<td>
								<cnt:AppViewList id="appViewList" runat="server" />
								<input id="hidSP" type="text" style="DISPLAY:none">
							</td>
							<td><!--占位格--></td>
						</tr>
					</table>
					<!--End of 下拉列表控件-->
				</td>
			</tr>
			<tr height="1">
				<td>
					<cnt:AppFind id="appFind" runat="server" />
				</td>
			</tr>
			<tr height="10">
				<td></td>
			</tr>
			<tr>
				<td>
					<iframe id="appIframe" url="Djgl_TfSh_Grid.aspx" width="100%" height="100%" frameborder="0"
						scrolling="no"></iframe>
				</td>
			</tr>
		</table>
	</body>
</HTML>
